package com.gexiao.service;

import com.gexiao.dao.DemoDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class DemoService {
    //明确指明执行那个demoDao
//    @Qualifier(value = "demoDao")
//    @Autowired
    @Resource
    private DemoDao demoDao;

    public void print(){
        System.out.println("demoDao = " + demoDao);
    }
}
